* STATA command file generated by EUGene  3.20 to read data file
* "C:\Program Files\EUGene\country_year.out"
* To execute this command file: 
*    1) Run STATA,
*    2) "cd" to directory "C:\Program Files\EUGene\",
*    3) enter command "do country_year.out.do".

* Number of observations in this data set: 14393

* Data set specifications:
*   Base Format: Country-Year
*   Time Span: 1816 to 2008
*   Selected Subset: All states included
*   Sampling: None (100% of available data written to file)
*   Variables included:
*        ccode	year	abbrev	cap	milper	milex	energy	irst	upop	tpop	majpow	region1	democ	autoc	dem	numstate	numGPs	syscon	sysmove1	sysmove5	sysmvGP1	sysmvGP5	country	imports	exports	alt_imports	alt_exports	source1	source2	version	cyear	scode	countr01	flag	fragment	democ	autoc	polity	polity2	durable	xrreg	xrcomp	xropen	xconst	parreg	parcomp	exrec	exconst	polcomp	prior	emonth	eday	eyear	eprec	interim	bmonth	bday	byear	bprec	post	change	d4	sf	regtrans	versio01
*   Selected settings for variables with multiple output options:
*        Peace years calculated without Werner peace year adjustment
*        No complex variables selected

* Note:  EUGene draws on datasets originally published elsewhere by other scholars.  When 
* presenting analysis using data generated by EUGene, please cite the original data sources 
* as well as EUGene (see EUGene documentation, Appendix D) 
*
* Bibliography for this data set:
* Jaggers, Keith, and Ted Robert Gurr.  1995.  "Tracking Democracy's Third Wave with the Polity III Data."  Journal of Peace Research 32:469-482.
* Small, Melvin, and J. David Singer.  1969.  "Formal Alliances, 1815-1965:  An Extension of the Basic Data."  Journal of Peace Research 6: 257-282.  
* Werner, Suzanne.  2000.  "The Effects of Political Similarity on the Onset of Militarized Disputes, 1816-1985."  Political Research Quarterly 53(2): 343-374.
* Correlates of War Project. 2008. �Trade Data Set, v2.0.� Online, http://correlatesofwar.org
* Marshall, Monty G. and Keith Jaggers. 2002. Polity IV Project: Political Regime Characteristics and Transitions, 1800-2002. http://www.cidcm.umd.edu/inscr/polity/index.htm.


clear 

infile int ccode int year str3 abbrev float cap float milper float milex float energy float irst float upop float tpop byte majpow byte region1 byte democ1 byte autoc1 byte dem int numstate int numGPs float syscon float sysmove1 float sysmove5 float sysmvGP1 float sysmvGP5 str32 country float imports float exports float alt_imports float alt_exports long source1 long source2 float version long cyear str32 scode str32 countr01 long flag long fragment long democ2 long autoc2 long polity long polity2 long durable long xrreg long xrcomp long xropen long xconst long parreg long parcomp long exrec long exconst long polcomp long prior long emonth long eday long eyear long eprec long interim long bmonth long bday long byear long bprec long post long change long d4 long sf long regtrans float versio01  using "Eugene/country_year.out" 

* The next command drops the case that was read 
*  if the user included a line of variable names 

drop if missing(ccode) | missing(year) 

* Interpret missing values  
mvdecode ccode year abbrev cap milper milex energy irst upop tpop majpow region1 numstate numGPs syscon sysmove1 sysmove5 sysmvGP1 sysmvGP5 , mv(-9) 
mvdecode democ1 autoc1 dem , mv(-99) 
mvdecode democ1 autoc1 dem , mv(-88) 
mvdecode democ1 autoc1 dem , mv(-77) 
mvdecode democ1 autoc1 dem , mv(-66) 
mvdecode democ2 autoc2, mv(-99) 
mvdecode democ2 autoc2, mv(-88) 
mvdecode democ2 autoc2, mv(-77) 
mvdecode democ2 autoc2, mv(-66) 
mvdecode country, mv(-9) 
mvdecode imports, mv(-9) 
mvdecode exports, mv(-9) 
mvdecode alt_imports, mv(-9) 
mvdecode alt_exports, mv(-9) 
mvdecode source1, mv(-9) 
mvdecode source2, mv(-9) 
mvdecode version, mv(-9) 
mvdecode cyear, mv(-99) 
mvdecode scode, mv(-99) 
mvdecode countr01, mv(-99) 
mvdecode flag, mv(-99) 
mvdecode fragment, mv(-99) 
mvdecode democ2, mv(-99) 
mvdecode autoc2, mv(-99) 
mvdecode polity, mv(-99) 
mvdecode polity2, mv(-99) 
mvdecode durable, mv(-99) 
mvdecode xrreg, mv(-99) 
mvdecode xrcomp, mv(-99) 
mvdecode xropen, mv(-99) 
mvdecode xconst, mv(-99) 
mvdecode parreg, mv(-99) 
mvdecode parcomp, mv(-99) 
mvdecode exrec, mv(-99) 
mvdecode exconst, mv(-99) 
mvdecode polcomp, mv(-99) 
mvdecode prior, mv(-99) 
mvdecode emonth, mv(-99) 
mvdecode eday, mv(-99) 
mvdecode eyear, mv(-99) 
mvdecode eprec, mv(-99) 
mvdecode interim, mv(-99) 
mvdecode bmonth, mv(-99) 
mvdecode bday, mv(-99) 
mvdecode byear, mv(-99) 
mvdecode bprec, mv(-99) 
mvdecode post, mv(-99) 
mvdecode change, mv(-99) 
mvdecode d4, mv(-99) 
mvdecode sf, mv(-99) 
mvdecode regtrans, mv(-99) 
mvdecode versio01, mv(-99) 

* Variable labels where available (see EUGeneDocumentation.doc for full information)  
label variable democ1 "Jaggers and Gurr (1995) Polity III Democracy Score for CCode" 
label variable autoc1 "Polity III Autocracy Score for CCode" 
label variable dem "Democracy Score for CCode (democ-autoc)" 
label variable ccode "Correlates of War (COW) CCode Num for state" 
label variable year "Year of observation" 
label variable abbrev "Country Abbreviation" 
label variable cap "National Capabilities Index (CINC) for CCode" 
label variable milper "COW military personnel for CCode" 
label variable milex "COW military expenditure for CCode" 
label variable energy "COW energy production for CCode" 
label variable irst "COW iron/steel production for CCode" 
label variable upop "COW nominal urban population for CCode" 
label variable tpop "COW nominal total population for CCode" 
label variable majpow "Major power status of CCode" 
label variable region1 "Home region of cc1" 
label variable numstate "Number of states in intl system as defined by COW system membership" 
label variable numGPs "Num of great powers in the international system" 
label variable syscon "System concentration (CON), entire system" 
label variable sysmove1 "System movement (MOVE), yearly computation, entire system" 
label variable sysmove5 "System movement (MOVE), 5-year moving average, entire system" 
label variable sysmvGP1 "System movement (MOVE), yearly computation, great powers" 
label variable sysmvGP5 "System movement (MOVE), 5-year moving average, great powers" 

compress 
